package com.itxiuyixiu.entity.component;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 黄磊
 * @date 2020/6/2
 */
@Constraint(validatedBy = AuthorityValidatorImpl.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AuthorityValidator {
    String message() default "权限数据输入错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
